import {http} from '@/http/http'

// 获取个人信息
export interface UserXxi{
    code: string,
    message: string,
    data: {
        id: string,
        avatar: string,
        mobile: string,
        account: string,
        likeNumber: 0,
        collectionNumber: 0,
        score: 0,
        couponNumber: 0,
        consultationInfo: [
            {
                id: string,
                name: string,
                avatar: string,
                depName: string,
                positionalTitles: string,
                hospitalName: string,
                gradeName: string,
                orderId: string
            }
        ],
        orderInfo: {
            paidNumber: 0,
            receivedNumber: 0,
            shippedNumber: 0,
            finishedNumber: 0
        }
    }
}

export function getUserInfo(){
    return http.get<UserXxi>('/patient/myUser')
}